﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-04-24 10:49:10
// 负责人：Sushee
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    /// 扩展
    /// </summary>
    public partial class MsgVerificationCodeOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个
    	/// </summary>
        public static MsgVerificationCodeInfo QuerySingle(Expression<Func<MsgVerificationCodeInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }
        /// <summary>
    	/// 根据断言条件获获取列表
    	/// </summary>
        public static IList<MsgVerificationCodeInfo> QueryList(Expression<Func<MsgVerificationCodeInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        ///  根据手机号与验证码类型取出记录
        /// </summary>
        /// <param name="typeId">类型</param>
        /// <param name="mobile">手机号</param>
        /// <param name="platformId">平台ID</param>
        /// <param name="checkCode">验证码</param>
        /// <returns></returns>
        public static MsgVerificationCodeInfo GetByTypeAndMobile(int typeId, string mobile, int platformId,string checkCode)
        {
            return dal.GetByTypeAndMobile(typeId, mobile, platformId, checkCode);
        }

        /// <summary>
        ///  根据手机号与验证码类型取出记录
        /// </summary>
        /// <param name="typeId">类型</param>
        /// <param name="mobile">验证码</param>
        /// <param name="platformId">平台ID</param>
        /// <returns></returns>
        public static MsgVerificationCodeInfo GetByMobileAndTypeId(int typeId, string mobile, int platformId)
        {
            return dal.GetByMobileAndTypeId(typeId, mobile, platformId);
        }
    }
}